# Scons build script for ADelay demo in VSTsdk v2.4
#
# bmoviehorror - Feb 2009

#Adjust the following line to suit your setup
vstPlugName = 'again'
vstSDKDir = 'C:\\code\\vst\\vstsdk2.4'

#This line tells the compiler where the sdk is so it can find the necessary include files
env = Environment(CPPPATH= vstSDKDir, tools=['mingw'])

#This line sets some optional compiler flags
#  -Wall shows all warnings during the build
#  -O3 MAkes the output dll highly optimised (fast)
env['CCFLAGS'] = ['-Wall -O3']

#The shared library command makes scons build a dll under windows.
#At this stage we specify all the source files in the project.
env.SharedLibrary(vstPlugName, [
          vstPlugName+'.cpp',
          vstSDKDir+'\\public.sdk\\source\\vst2.x\\audioeffect.cpp',
          vstSDKDir+'\\public.sdk\\source\\vst2.x\\audioeffectx.cpp',
          vstSDKDir+'\\public.sdk\\source\\vst2.x\\vstplugmain.cpp'])
